//
//  File.swift
//
//
//  Created by didi on 2022/9/9.
//

import SwiftHtml
import Vapor

public struct MainTemplate: TemplateRepresentable {
    public let context: MainContext

    public init(_ context: MainContext) {
        self.context = context
    }

    public func render(_ req: Request) -> Tag {
        Main {
            Div {
                context.body
            }
            .class("safe-area")
        }
    }
}
